package com.example.myfirst.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 店家表(Shops)表实体类
 *
 * @author makejava
 * @since 2023-12-12 16:44:51
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("shops")
public class Shops extends Model<Shops> implements Serializable {
    //ID
    @TableId(type = IdType.AUTO)
    private Integer id;
    //店铺名称
    private String name;
    //头像
    private String header;
    //背景图片
    private String backgroundimg;
    //店铺公告
    private String notice;
    //起送价格
    private Integer startPrice;
    //配送价格
    private Integer endPrice;
    // 添加临时属性 -> 获取店铺所对应的商品
    @TableField(exist = false)
    private List<Goods> list;
}

